<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>售后服务列表</title>
<#include "/view/admin/headList.html"/>
    <script type="text/javascript">

        $(function() {
            //初始化
        });
    </script>
</head>
<body>



<div class="table-class">
    <div class="panel panel-default" style="margin: 10px 10px 10px;" hidden>
     <div class="panel-body">
        <form class="bs-example bs-example-form" role="form">

            <div class="input-group">
                <span class="input-group-addon">商品</span>
                <input type="text" id="commodityId" class="form-control" value="${entity.commodityId!}" placeholder="请输入商品">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">售后服务名称</span>
                <input type="text" id="name" class="form-control" value="${entity.name!}" placeholder="请输入售后服务名称">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">售后服务内容</span>
                <input type="text" id="value" class="form-control" value="${entity.value!}" placeholder="请输入售后服务内容">
            </div>
                <span class="bank-label">&nbsp;</span>


                <div class="input-group">
                    <span class="input-group-addon">开始创建时间</span>
                    <input type="text" id="createtimeStart" class="form-control isdatetimepicker" value="<#if (entity.createtimeStart)?? >${entity.createtimeStart?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="createtimeStart" name="createtimeStart" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>
                <div class="input-group">
                    <span class="input-group-addon">结束创建时间</span>
                    <input type="text" id="createtimeEnd" class="form-control isdatetimepicker" value="<#if (entity.createtimeEnd)?? >${entity.createtimeEnd?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="createtimeEnd" name="createtimeEnd" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>

                <div class="input-group">
                    <span class="input-group-addon">开始更新时间</span>
                    <input type="text" id="updatetimeStart" class="form-control isdatetimepicker" value="<#if (entity.updatetimeStart)?? >${entity.updatetimeStart?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="updatetimeStart" name="updatetimeStart" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>
                <div class="input-group">
                    <span class="input-group-addon">结束更新时间</span>
                    <input type="text" id="updatetimeEnd" class="form-control isdatetimepicker" value="<#if (entity.updatetimeEnd)?? >${entity.updatetimeEnd?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="updatetimeEnd" name="updatetimeEnd" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>


            <div class="input-group" style="text-align: right;">
                <a class="btn btn-info"  href="javascript:query('${base}/czjaftersales/list.do')"><span class="glyphicon glyphicon-search"></span> 查找</a>

            </div>
        </form>
     </div>
    </div>


    <table class="table table-hover table-list table-bordered">
        <thead>
        <tr>
            <td class="table-head-btn">
                <div style="text-align:left;margin-left: 50px;">
                    <a href="${base}/czjaftersales/add.do?commodityId=${entity.commodityId!}" class="btn btn-primary">新增</a>
                </div>
            </td>
        </tr>
        <tr class="table-head">
            <!--<th>序号</th>-->
                <th class="label-hidden">主键</th>
                <th  class="label-hidden">商品</th>
            <th>排序</th>
            <th>售后服务名称</th>
            <th>售后服务内容</th>
            <!--    <th>创建时间</th>
                <th>更新时间</th>-->

            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <!--<td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>-->
                        <td class="label-hidden">${c.aftersalesId!}</td>
                            <td class="label-hidden">${c.commodityId!}</td>
                            <td>${c.orderByno!}</td>
                            <td>${c.name!}</td>
                            <td>${c.value!}</td>



                <td>
                    <!--<a href="${base}/czjaftersales/detail.do?aftersalesId=${c.aftersalesId!}" class="btn btn-primary">详情</a>-->
                    <a href="${base}/czjaftersales/add.do?aftersalesId=${c.aftersalesId!}" class="btn btn-primary">修改</a>
                    <a href="javascript:checkDelete('${base}/czjaftersales/delete.do?aftersalesId=${c.aftersalesId!}')" class="btn btn-primary">删除</a>
                </td>
            </tr>








        </#list>
        </tbody>
    </table>


</div>
<script>

    function queryCondition(){
        var href="";
            href+='commodityId='+$('#commodityId').val();
                href+='&'
            href+='name='+$('#name').val();
                href+='&'
            href+='value='+$('#value').val();
                href+='&'
            href+='createtimeStart='+$('#createtimeStart').val()+"&";
            href+='createtimeEnd='+$('#createtimeEnd').val();
                href+='&'
            href+='updatetimeStart='+$('#updatetimeStart').val();
            href+='updatetimeEnd='+$('#updatetimeEnd').val();
                
        return href;
    }

</script>

</body>
</html>
